package com.yinchuang.aiuidemo;

import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatButton;
import android.view.View;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author Administrator
 */
public class MainActivity extends AppCompatActivity {
    public static String TAG = "MainActivity";
    @BindView(R.id.btn_sdk)
    AppCompatButton mBtnSdk;
    @BindView(R.id.btn_audiorecord)
    AppCompatButton mBtnAudiorecord;
    @BindView(R.id.btn_pcm)
    AppCompatButton mBtnPcm;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.btn_sdk, R.id.btn_audiorecord, R.id.btn_pcm})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_sdk:
                startActivity(new Intent(MainActivity.this, SdkRecordActivity.class));
                break;
            case R.id.btn_audiorecord:
                startActivity(new Intent(MainActivity.this, AudioRecordActivity.class));
                break;
            case R.id.btn_pcm:
                startActivity(new Intent(MainActivity.this, PcmRecordActivity.class));
                break;
        }
    }
}
